import { RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
	{
		path: "/login",
		name: "login",
		component: () => import("@/views/login/index.vue"),
		meta: {
			title: "登录",
			isKeepAlive: false,
		},
	},
	{
		path: "/register",
		name: "register",
		component: () => import("@/views/login/index.vue"),
		meta: {
			title: "注册",
			isKeepAlive: true,
		},
	},
	{
		path: "/",
		name: "",
		component: () => import("@/views/login/index.vue"),
		meta: {
			title: "登录",
			isKeepAlive: false,
		},
	},
];

export default routes;
